import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AddQuestion from '../views/AddQuestion.vue'
import Practice from '../views/Practice.vue'
import AdminList from '../views/AdminList.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/add',
      name: 'add',
      component: AddQuestion
    },
    {
      path: '/practice',
      name: 'practice',
      component: Practice
    },
    {
      path: '/admin',
      name: 'admin',
      component: AdminList
    }
  ]
})

export default router 